//
//  DNInspectButton.swift
//  LunalerApp
//
//  Created by 露乐ios on 2018/2/9.
//  Copyright © 2018年 露乐ios. All rights reserved.
//

import UIKit

class DNInspectButton: UIButton {

    /*
    // Only override draw() if you perform custom drawing.
    // An empty implementation adversely affects performance during animation.
    override func draw(_ rect: CGRect) {
        // Drawing code
    }
    */
    @IBInspectable var cornerRadius: CGFloat{
        didSet{
            self.layer.cornerRadius = cornerRadius
        }
    };
    
    @IBInspectable var borderLineW: CGFloat{
        didSet{
            self.layer.borderWidth = borderLineW
        }
    };
    
    @IBInspectable var borderColor: UIColor{
        didSet{
            self.layer.borderColor = borderColor.cgColor
        }
    };
    
    override init(frame: CGRect) {
        self.cornerRadius = 0.0;
        self.borderLineW = 0.0;
        self.borderColor = UIColor.clear
        super.init(frame: frame)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
